﻿@model qltscd.Models.BaseClient.DanhMucNhaCungCap
@{
    ViewBag.Title = "SuaNhaCungCap";
    Layout = "~/Views/Shared/Modules/_LayoutDanhMucNhapLieu.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script>
    function submitTaoNhaCungCap(kieu) {
        document.getElementById("kieu").value = kieu;
        document.forms["TaoNhaCungCap"].submit();
    }
</script>
@using (Html.BeginForm("SuaNhaCungCap", "DanhMucNhaCungCap", FormMethod.Post, new { @id = "TaoNhaCungCap" }))
{
    @Html.ValidationSummary(true);
    @Html.HiddenFor(o => o.IdentityNhaCungCap);
    <input type="hidden" value="0" name="kieu" id="kieu"/>                                                                   
    <fieldset>
    <legend>Danh Mục Nhà cung cấp</legend>
    <table border="0" width="100%" cellpadding="10px" cellspacing="10px">
            <tr>
                <td style="margin-left: 10px;" class="label_col">
                    Mã nhà cung cấp
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.MaNhaCungCap, new { @style = "width:97%; " })
                    
                </td>
                <td style="margin-left: 10px;" class="label_col">
                    Tên nhà cung cấp
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.TenNhaCungCap, new { @style = "width:97%; " })
                    
                </td>
            </tr>
            <tr>
                <td style="margin-left: 10px;" class="label_col">
                    Mã số thuế
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.MaSoThue, new { @style = "width:97%; " })
                    
                </td>
                <td style="margin-left: 10px;" class="label_col">
                    Địa chỉ
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.DiaChi, new { @style = "width:97%; " })
                    
                </td>
            </tr>
            <tr>
                <td style="margin-left: 10px;" class="label_col">
                    Điện thoại
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.DienThoai, new { @style = "width:97%; " })
                   
                </td>
                <td style="margin-left: 10px;" class="label_col">
                    Trang web
                </td>
            
                <td>
                    @Html.TextBoxFor(Model => Model.TrangWeb, new { @style = "width:97%; " })
                    
                </td>
            </tr>
            <tr>
                <td style="margin-left: 10px;" class="label_col">
                    Người bảo hành
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.NguoiBaoHanh, new { @style = "width:97%; " })
                    
                </td>
                <td style="margin-left: 10px;" class="label_col">
                    Địa chỉ bảo hành
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.DiaChiBaoHanh, new { @style = "width:97%; " })
                    
                </td>
            </tr>
            <tr>
                <td style="margin-left: 10px;" class="label_col">
                    Điện thoại bảo hành
                </td>
                <td>
                    @Html.TextBoxFor(Model => Model.DienThoaiBaoHanh, new { @style = "width:97%; " })
                    
                </td>
            </tr>
        </table>
        @*<p>
            <input type="submit" value="Create" />
        </p>*@
    </fieldset>
    <div class="divButton">
            <input type="submit" value="Lưu" class="button" />&nbsp;
            <input type="reset" value="Nhập lại" class="button" />&nbsp;
            @Html.ActionLink("Thoát", "Index", null, new { @class = "button" })
        </div>
}
@*<div>
    @Html.ActionLink("Back to List", "Index")
</div>*@
<style type="text/css">
.lable_col
    {
        font-weight: bold;
        text-align: right;
        font-style: italic;
        margin-right: 5px;
        color: Black;
    }
    fieldset
    {
        height: 85%;
        line-height: 38px;
    }
    legend
    {
        color:Black;
        font-weight:bold;
    }
    td
    {
        vertical-align: middle !important;
        }
</style>
<div class="errBlock">
                        
                        @Html.ValidationMessageFor(Model => Model.MaNhaCungCap, "", new { @style = "display:block" })
                        @ViewData[qltscd.Contansts.SessionConstants.ERROR_MESSAGE]
                        <br />
                        @Html.ValidationMessageFor(Model => Model.TenNhaCungCap, "", new { @style = "display:block" })
                 
                        @Html.ValidationMessageFor(Model => Model.MaSoThue, "", new { @style = "display:block" })
                 
                        @Html.ValidationMessageFor(Model => Model.DiaChi, "", new { @style = "display:block" })
                    
                        @Html.ValidationMessageFor(Model => Model.DienThoai, "", new { @style = "display:block" })
                    
                        @Html.ValidationMessageFor(Model => Model.TrangWeb, "", new { @style = "display:block" })
                   
                        @Html.ValidationMessageFor(Model => Model.NguoiBaoHanh, "", new { @style = "display:block" })
                    
                        @Html.ValidationMessageFor(Model => Model.DiaChiBaoHanh, "", new { @style = "display:block" })
                    
                        @Html.ValidationMessageFor(Model => Model.DienThoaiBaoHanh, "", new { @style = "display:block" })
                    </div>